<?php

/**
 * Typy usług
 * @author Anna Rybka
 *
 */
class ServiceType{

	/**
	 * Usługa, telewizja
	 */
	const TV_SERVICE = 1;

	/**
	 * Usługa, internet
	 */
	const INT_SERVICE = 2;

	/**
	 * Usługa, telefon
	 */
	const PHONE_SERVICE = 3;
	
	
	
	public static function convert($serviceType){
		$result = "unknowe";
		if(VariableUtils::isNumber($serviceType)){
			switch($serviceType){
				case self::TV_SERVICE:
					$result = "Telewizja";
					break;
				case self::INT_SERVICE:
					$result = "Internet";
					break;
					
				case self::PHONE_SERVICE:
					$result = "Telefon";
					break;
				
			}
		}
		return $result;
	}
}

?>